package com.jm.bishe.entity;

public enum ResultCode {

    SUCCESS(1000,"成功"),//成功
    PARAM_IS_INVALID(1001,"参数错误"),//参数错误
    PARAM_IS_BLANK(1002,"参数为空"),//参数为空
    PARAM_TYPE_BIND_ERROR(1003,"参数类型错误"),//参数类型错误
    PARAM_NOT_COMPLETE(1004,"参数缺失"),//参数缺失
    USER_NOT_LOGGED_IN(2001,"用户未登录,请登录"),
    USER_LOGIN_ERROR(2002,"用户名或密码错误"),
    USER_ACCOUNT_FORBIDDEN(2003,"账号已被注销"),
    USER_HAS_EXISTED(2004,"账号已存在"),
    USER_NOT_EXIST(2005,"账号未存在"),
    SQL_ERROR(3001,"数据库错误,请联系管理员")
    ;
    private int code;
    private String msg;
    ResultCode(int code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
